<template>
  <section class="page-container">
    <DynamicForm :config="dyConfig" :questions="dyQuestions" />
    <DynamicTable :tables="dyTable" :config="dyTableConfig" />
  </section>
</template>

<script lang="ts" setup>
import { reactive } from 'vue';
import { DynamicForm } from '@/components/public-template';
import { DynamicTable } from '@/components/public-template';
import indexService from './index.service';
import { Api } from '@/config/api/archivesReturn';

const dyQuestions: any = reactive(indexService.getQuestions());
const dyConfig: any = {
  labelCol: 6,
  wrapperCol: 18,
  grid: 8,
  style: 'table-form',
  cancelSave: true
};

const dyTable: any = reactive(indexService.getTables());
const dyTableConfig: any = {
  queryUrl: Api.archivesReturnInfoPage,
  protType: 'post',
  isScreen: true
};
</script>
